reverse of a number in c using for loop